1 # Building in Windows 10 with Linux subsystem
3 Linux subsystem for Windows 10 is probably the simplest way of building INAV under Windows 10.
5 ## Setting up the environment
9 enable `windows subsytem for linux`
14 1. Go to Microsoft store https://www.microsoft.com/en-gb/store/b/home
15 1. Search and install most recent Ubuntu LTS version
16 1. When download completed, select `Launch Ubuntu`
17 1. When prompted enter a user name and password which you will need to remember
18 1. When complete, the linux command prompt will be displayed
20 NOTE: from this point all commands are entered into the Ubunto shell command window
22 Update the repo packages:
25 Install Git, Make, gcc and Ruby
26 1. `sudo apt-get install git`
27 1. `sudo apt-get install make`
28 1. `sudo apt-get install gcc-arm-none-eabi`
29 1. `sudo apt-get install ruby`
31 ## Downloading the iNav repository (example):
33 Mount MS windows C drive and clone iNav
35 1. `git clone https://github.com/iNavFlight/inav.git`
38 You now have a folder called inav in the root of C drive that you can edit in windows
41 ## Building (example):
44 Click Windows Start button then scroll and lauch "Ubuntu"
46 Building from Ubunto command line
48 `make clean TARGET=OMNIBUSF4PRO` (as an example)
49 `make TARGET=MATEKF405` (as an example)
53 Launch windows configurator GUI and from within the firmware flasher select `Load firmware[Local]`
54 Hex files can be found in the folder `c:\inav\obj`